package cn.iocoder.yudao.framework.common.pojo.wework;

import lombok.Data;

import java.io.Serializable;

/**
 * 微信消息发送请求参数实体类
 */
@Data
public class WeworkMessageSendReq implements Serializable {

    private static final long serialVersionUID = 7891905382824595326L;

    private String touser;

    private String toparty;

    private String totag;

    private String msgtype;

    /**
     * 三立OA应用id
     */
    private String agentid = "1000030";

    /**
     * 文本消息对象
     */
    private TextObject text;

    /**
     * 卡片消息对象
     */
    private TextCardObject textcard;

    private int safe;

    private int enable_id_trans;

    private int enable_duplicate_check;

    private int duplicate_check_interval;

    @Data
    public static class TextObject{
        private String content;
    }

    @Data
    public static class TextCardObject{
        private String title;
        private String description;
        private String url;
        private String btntxt="详情";
    }
}
